package cn.itsource.lcw.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 自定义日志记录表
 * </p>
 *
 * @author luchengwang
 * @since 2020-11-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SysGlobalLogging对象", description="自定义日志记录表")
public class SysGlobalLogging extends Model<SysGlobalLogging> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "内容")
    private String message;

    @ApiModelProperty(value = "级别")
    private String levelString;

    @ApiModelProperty(value = "时间")
    private LocalDateTime createdTime;

    @ApiModelProperty(value = "全类名")
    private String loggerName;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
